package vek.XML.parsedObjects;

/**
 * Contains the data about the map of the city.
 * This class contains the location of the map, the width and the height of the map.
 * @author Christian, Michal og Jakob (Hold 1, gruppe 2)
 */
public class ParsedMap {
    
    private String location;
    private String backgroundFilename;
    private int widthOfBackground;
    private int heightOfBackground;
    
    /**
     * 
     * @param loc the location of this map
     * @param backfile the path and file name of the background
     * @param width the width of the background image
     * @param height the height of the background image
     */
    
    public ParsedMap(String loc, String backfile, int width, int height)
    {
        location = loc;
        backgroundFilename = backfile;
        widthOfBackground = width;
        heightOfBackground = height;
    }
    
    /**
     * Gets the location of this map
     * @return the location of this map
     */
    
    public String getLocation()
    {
        return location;
    }
    
    /**
     * Gets the background file name for this map
     * @return the background file name for this map
     */
    
    public String getBackgroundFilename()
    {
        return backgroundFilename;
    }
    
    /**
     * Gets the width of this background image. 
     * @return the width of this background image.
     */
    
    public int getWidthOfBackground()
    {
        return widthOfBackground;
    }
    
    /**
     * Gets the height of this background image. 
     * @return the height of this background image.
     */
    
    public int getHeightOfBackground()
    {
       return heightOfBackground;
    }

}
